package com.example.ftpclient;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping(value = "/ftp")
public class FTPController {

    @RequestMapping(value = "/single")
    public String single(){
        FTPClientGetFileUtils.single();
        return "OK";
    }

    @RequestMapping(value = "batch")
    public String batch(){
        FTPClientGetFileUtils.batch();
        return "OK";
    }


}
